FROM 172.16.101.49/base/java8:2.3.1

VOLUME /data

ADD pg-face-1.0.0.jar /tmp/pg-face-1.0.0.jar
ADD ai_os/ /tmp/ai_os/

ENV LD_LIBRARY_PATH=/tmp/ai_os
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
EXPOSE 8081
ENV LC_ALL "zh_CN.UTF-8"


ENV ENABLE_PINPOINT=true
ENV PINPOIN_COLLECTOR=172.18.100.176
ENV APP_NAME=pg-face-1.0.0
ENV PINPOIN_AGENTNAME=dev


ENV JAVA_OPTS="-Xms512m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256m -Dapp.id=pg-face-1.0.0 -Denv=dev -Ddev_meta=http://uccconfig-stg.jieyue.com/"

ENTRYPOINT ["/tmp/setenv.sh", " java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /tmp/pg-face-1.0.0.jar "]
